package com.解释器模式;

/**
 * @author Fang Ruichuan
 * @date 2022-12-22 19:56
 */
public class AddNonterminalExpression extends TerminalExpression {
    public AddNonterminalExpression(IExpression a, IExpression b) {
        super(a, b);
    }

    @Override
    public int interpret() {
        return this.a.interpret() + this.b.interpret();
    }
}
